package com.vegetable.modules.service.inbound;

import com.baomidou.mybatisplus.extension.service.IService;
import com.vegetable.modules.entity.inbound.AgentDeliveryDetail;

import java.util.List;

/**
 * <p>
 * 入库-代办交货商品表 服务类
 * </p>
 *
 * @author wangruijie
 * @since 2024-03-07
 */
public interface IAgentDeliveryDetailService extends IService<AgentDeliveryDetail> {

    int deleteByOrderId(Long orderId);

    int deleteById(Long detailId);

    List<AgentDeliveryDetail> selectByOrderId(Long orderId);

    List<AgentDeliveryDetail> selectByOrderIds(List<Long> orderIds);

    List<AgentDeliveryDetail> canPaymentList();

    AgentDeliveryDetail selectByOrderIdAndCommodityIdAndSpecsId(Long orderId, Long commodityId, Long specsId, Integer initNumber);

    void checkSpecsName();

}
